package com.clouds.wms.service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.clouds.wms.bean.Purmb;
import com.clouds.wms.exception.DatabaseException;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

public interface PurmbService {
	PagesBean getPurmbList(String maaa,String maab,int offset, int pageSize) throws SysException;
	int savePurcb(Purmb purmb)throws SysException;
	int updatePurcb(Purmb purmb)throws SysException;
	int getMaxMbac()throws SysException;
	int delPurmb(String mbaa, String mbab, String mbacs)throws SysException;
	int changeStatus(String mbaa, String mbab, String status)throws SysException;
	@Transactional(propagation=Propagation.REQUIRED, rollbackFor=DatabaseException.class)
	void delPurmamb(String maaa, String maab)throws SysException;
	void delPurmbAll(String maaa, String maab)throws SysException;
}
